import { http } from '@/utils/http'

export const getMeetingListAPI = (data: any) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/todo/meeting/list',
    data,
  })
}

export const getMeetingAPI = (meetingId: number | string) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/todo/meeting/' + meetingId,
  })
}

export const deleteMeetingAPI = (meetingId: number | string) => {
  return http<any[]>({
    method: 'DELETE',
    url: '/mobile/todo/meeting/' + meetingId,
  })
}

export const postAddMeetingAPI = (data: any) => {
  return http<any[]>({
    method: 'POST',
    url: '/mobile/todo/meeting',
    data,
  })
}

export const putAddMeetingAPI = (data: any) => {
  return http<any[]>({
    method: 'PUT',
    url: '/mobile/todo/meeting',
    data,
  })
}
